package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TicketSalesMapper;
import com.ruoyi.system.domain.TicketSales;
import com.ruoyi.system.service.ITicketSalesService;

/**
 * 售票管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-28
 */
@Service
public class TicketSalesServiceImpl implements ITicketSalesService 
{
    @Autowired
    private TicketSalesMapper ticketSalesMapper;

    /**
     * 查询售票管理
     * 
     * @param orderId 售票管理主键
     * @return 售票管理
     */
    @Override
    public TicketSales selectTicketSalesByOrderId(Long orderId)
    {
        return ticketSalesMapper.selectTicketSalesByOrderId(orderId);
    }

    /**
     * 查询售票管理列表
     * 
     * @param ticketSales 售票管理
     * @return 售票管理
     */
    @Override
    public List<TicketSales> selectTicketSalesList(TicketSales ticketSales)
    {
        return ticketSalesMapper.selectTicketSalesList(ticketSales);
    }

    /**
     * 新增售票管理
     * 
     * @param ticketSales 售票管理
     * @return 结果
     */
    @Override
    public int insertTicketSales(TicketSales ticketSales)
    {
        return ticketSalesMapper.insertTicketSales(ticketSales);
    }

    /**
     * 修改售票管理
     * 
     * @param ticketSales 售票管理
     * @return 结果
     */
    @Override
    public int updateTicketSales(TicketSales ticketSales)
    {
        return ticketSalesMapper.updateTicketSales(ticketSales);
    }

    /**
     * 批量删除售票管理
     * 
     * @param orderIds 需要删除的售票管理主键
     * @return 结果
     */
    @Override
    public int deleteTicketSalesByOrderIds(Long[] orderIds)
    {
        return ticketSalesMapper.deleteTicketSalesByOrderIds(orderIds);
    }

    /**
     * 删除售票管理信息
     * 
     * @param orderId 售票管理主键
     * @return 结果
     */
    @Override
    public int deleteTicketSalesByOrderId(Long orderId)
    {
        return ticketSalesMapper.deleteTicketSalesByOrderId(orderId);
    }
}
